package com.stylefeng.guns.rest.modular.App.service;

import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.core.model.CommonKeyValue;
import com.stylefeng.guns.core.model.Pager;
import com.stylefeng.guns.rest.modular.App.model.TaskReleaseReason;

import java.util.List;
import java.util.Map;
/**
  * 任务拒绝原因字典表 Service接口
  * @author 张亚林
  * @Date 2018-11-12 17:15 
 */
public interface ITaskReleaseReasonService extends IService<TaskReleaseReason> {

    /**
     * 删除任务拒绝原因字典表
     * @param taskReleaseReason
     * @return     
     */
    int deleteTaskReleaseReason(TaskReleaseReason taskReleaseReason,String token)throws Exception;
    /**
     * 批量删除任务拒绝原因字典表
     * @param ids 主键ID数组
     * @return     
     */
    int deleteBatchTaskReleaseReason(String[] ids,String token)throws Exception;
    /**
     * 查询任务拒绝原因字典表列表
     * @param taskReleaseReason 任务拒绝原因字典表对象
     * @return     
     */
    List<TaskReleaseReason> selectListTaskReleaseReason(TaskReleaseReason taskReleaseReason,String token)throws Exception;

	/**
     * 分页查询任务拒绝原因字典表列表
     * @param pager 分页对象
     * @return     
     */
    Map pageListTaskReleaseReason(Pager pager,String token) throws Exception;

    /**
     * 同一个事务 互斥锁查询
     * @param taskReleaseReason 任务拒绝原因字典表对象
     * @return     
     */
    List<TaskReleaseReason> selectListTaskReleaseReasonForUpdate(TaskReleaseReason taskReleaseReason)throws Exception;
    /**
     * 通过主键id查询的任务拒绝原因字典表列表
     * @param id 主键id
     * @return     
     */
    TaskReleaseReason findTaskReleaseReasonById(String id,String token)throws Exception;

    /**
     * 新增任务拒绝原因字典表数据
     * @param taskReleaseReason  任务拒绝原因字典表对象
     * @return
     */
    int insertTaskReleaseReason(TaskReleaseReason taskReleaseReason,String token) throws Exception ;
    /**
     * 更新任务拒绝原因字典表数据
     * @param taskReleaseReason 任务拒绝原因字典表对象
     * @return     
     */
    int updateTaskReleaseReason(TaskReleaseReason taskReleaseReason,String token) throws Exception ;    

    /**
     * 查询任务拒绝原因字典表返回key-Value属性
     * @param taskReleaseReason 系统操作对象
     * @return     
     */
    List<CommonKeyValue> optionsTaskReleaseReason(TaskReleaseReason taskReleaseReason,String token)throws Exception;
}
